package org.example.entity.dto;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class AddAddressBookDto {
    private Long id;
    /**
     * 主题
     */
    @NotBlank(message = "主题不能为空")
    private String title;
    /**
     * 通话人名
     */
    @NotBlank(message = "联系人姓名不能为空")
    private String username;
    /**
     *
     */
    @NotBlank(message = "手机号不能为空")
    private String phone;

}
